Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logic to handle number acceptors #5813

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

RanVaknin
Copy link

@RanVaknin RanVaknin commented Jan 21, 2025

Motivation and Context

Currently the Java SDK waiter matcher acceptor only support Integers. According to the cross SDK spec waiter matcher acceptor must support all number types.

Modifications

  • Changed jmspathruntime numbers internally to use BigDecimal for all number types in order to support arbitrary precision.
  • Updated Jackson Jr version to 2.17.3 to support Big Decimal.

Testing

  • Added WaitersPathMatcherTest for numeric matchers
  • Added coverage to existing numeric handling tests

@RanVaknin RanVaknin changed the title add logic to handle number acceptors Add logic to handle number acceptors Jan 21, 2025
@RanVaknin RanVaknin force-pushed the rvaknin/number-support-for-waiters branch from 4fb548f to cd55716 Compare January 28, 2025 23:43
@RanVaknin RanVaknin marked this pull request as ready for review January 29, 2025 01:29
@RanVaknin RanVaknin requested a review from a team as a code owner January 29, 2025 01:29
Copy link
Contributor

@dagnir dagnir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add tests in codegen for generated waiters that use numbers?

Copy link

sonarqubecloud bot commented Feb 7, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
65.9% Coverage on New Code (required ≥ 80%)
14.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants